﻿using PmSadis.Models.Abstract;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Collections.Generic;
using System;

namespace PmSadis.Models
{
    /// <summary>
    /// Генподрядчик
    /// </summary>
    [Table("D_GEN_CONTRACTOR")]
    [MetadataType(typeof(GenContractorMetadata))]
    public class GenContractor : Contractor
    {
        /// <summary>
        /// Генконтракт генподрядчика
        /// </summary>
        [Column("GEN_CONTRACT_ID")]
        [Key]
        public int GenContractId { get; set; }

        /// <summary>
        /// Генконтракт генподрядчика
        /// </summary>
        public virtual GenContract GenContract { get; set; }
        
    }

    sealed class GenContractorMetadata : ContractorMetadata
    {
        
    }
}
